﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Vux.Helper.File
{
    public static class FileReader
    {
        public static byte[] ReadAllBytes(string ip_str_path)
        {
            var v_fstream = new FileStream(ip_str_path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
            var buffer = new byte[v_fstream.Length];
            v_fstream.Read(buffer, 0, buffer.Length);
            v_fstream.Close();
            return buffer;
        }
    }
}
